#ifndef UTILS_H
#define UTILS_H
#include <QString>
#include <tuple>
#include <functional>
#include <QNetworkAccessManager>
extern QString kNumPlaceholder;
extern QString kStringPlaceholder;
extern QString kSplitChar;
extern size_t kPinyinKeyMaxLength;
using LanguageConfig = std::tuple<QString, QString>;

QString generatePinyin(QString full);
void requestPinYin(QNetworkAccessManager *network,const QString &pinyin,std::function<void(const QString &pinyin)> callback,std::function<void(const QString &errorMessage)> errCallback);
#endif